<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" lang="en" th:with="unixstamp=${#dates.createNow().time}">
<head th:replace="common::header"></head>
<style type="text/css">
.layui-table-view .layui-form-radio>i{
    margin : 12px;
}
</style>
<body>
	<div class="layui-fluid">
		<div class="layui-row">
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-header t-title layui-bg-cyan mlk-title">回收订单管理</div>
					<div class="layui-card-body">
                        <form class="layui-form" id="queryForm">
                            <div class="layui-form-item">
                                <div class="layui-inline" style="margin-right: -50px;">
                                    <label class="layui-form-label">订单号</label>
                                    <div class="layui-input-inline" style="width: 130px;">
                                        <input type="text" name="orderCode" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" style="margin-right: -50px;">
                                    <label class="layui-form-label" style="width: 130px;">客户姓名</label>
                                    <div class="layui-input-inline" style="width: 130px;">
                                        <input type="text" name="name" autocomplete="off" class="layui-input" >
                                    </div>
                                </div>
                                <div class="layui-inline" style="margin-right: -50px;">
                                    <label class="layui-form-label" style="width: 130px;">客户电话</label>
                                    <div class="layui-input-inline" style="width: 130px;">
                                        <input type="text" name="phone" autocomplete="off" class="layui-input" >
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="width: 130px;">日期范围</label>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="text" name="startDate" id="startDate" autocomplete="off" class="layui-input">
                                    </div>
                                    <div class="layui-form-mid">--</div>
                                    <div class="layui-input-inline" style="width: 100px;">
                                        <input type="text" name="endDate" id="endDate" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline" style="margin-right: -50px;">
                                    <label class="layui-form-label" style="width: 130px;">订单状态</label>
                                    <div class="layui-input-inline" style="width: 130px;">
                                        <select name="status">
                                            <option value=""></option>
                                            <option value="0">取消订单</option>
                                            <option value="1">待接单</option>
                                            <option value="2">待取货</option>
                                            <option value="4">待审核</option>
                                            <option value="5">审核驳回</option>
                                            <option value="6">审核通过</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-inline" style="margin-right: -50px;width: 100px;" >
                                    <div class="layui-input-inline">
                                        <a href="#" class="layui-btn layui-btn-normal" lay-submit lay-filter="*" id="submit">查询</a>
                                    </div>
                                </div>
                            </div>
                        </form>
						<table class="layui-table" id="table" lay-filter="table" style="height:100%;"></table>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>


<div class="mlk-hide" id="detailLayer">
    <table id="detailTable" lay-filter="detailTable"></table>
</div>

<!--派单选择人-->
<div class="mlk-hide" id="empSelectLayer">
    <table id="empSelectTable" lay-filter="empSelectTable"></table>
</div>

<!--审核-->
<div class="mlk-hide" id="verifyLayer">
    <ul class="layui-timeline">

    </ul>
</div>

<div class="mlk-hide" id="verify_item">
    <li class="layui-timeline-item">
        <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
        <div class="layui-timeline-content layui-text">
            <h3 class="layui-timeline-title" id="verify_item_title"></h3>
            <p id="verify_item_content">
            </p>
        </div>
    </li>
</div>
<script type="text/html" id="toolbar">

</script>

<script type="text/html" id="tool">
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="detail">订单详情</a>
    {{#  if(d.status == 1 ){ }}
    <a class="layui-btn layui-btn-sm layui-btn-warm" lay-event="assign">分派订单</a>
    {{#  } }}
    {{#  if(d.status == 3 ){ }}
    <a class="layui-btn layui-btn-sm" lay-event="verify">审核</a>
    {{#  } }}
</script>
<div th:include="common::footer"></div>
<script type="text/javascript" th:src="@{/js/waste/wasteOrder.js}"></script>
</html>